package com.thinkgem.jeesite.cn.yy.serviceimpl;

import com.thinkgem.jeesite.cn.yy.entity.ProTableCol;
import com.thinkgem.jeesite.cn.yy.service.ProColAdminService;
import com.thinkgem.jeesite.cn.yy.utils.Paging;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 数据表字段信息ServiceImpl
 * Created by Administrator on 2017/11/22 0022.
 */
@Service
@Transactional
public class ProColAdminServiceImpl implements ProColAdminService {

    @Resource
    private ProColAdminService proColAdminService;


    public void save(ProTableCol procol) {
        proColAdminService.save(procol);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int proColCount(){
        return proColAdminService.proColCount();
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<ProTableCol> getProCols(Paging pag) {
        return proColAdminService.getProCols(pag);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int getcountByTid(int tid) {
        return proColAdminService.getcountByTid(tid);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<ProTableCol> getgetProColByTid(Paging pag) {
        return proColAdminService.getgetProColByTid(pag);
    }

    public void updateProColByid(ProTableCol pro) {
        proColAdminService.updateProColByid(pro);
    }




    public void delProCol(int id) {
        proColAdminService.delProCol(id);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int getProIdByTid(int tid){
        return  proColAdminService.getProIdByTid(tid);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public String getProColId() {
        return proColAdminService.getProColId();
    }


}
